package com.neborosoft.FlyingDog.logic.database.providers;

import com.neborosoft.FlyingDog.logic.database.AudioDataManager;
import com.neborosoft.FlyingDog.logic.database.content.identified.Mood;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: CM
 * Date: 09.03.13
 * Time: 4:21
 * To change this template use File | Settings | File Templates.
 */
public class MoodTree extends TagsTreeWithSongsAndArtistsNavigation{
    private static final AudioDataManager AUDIO_DATA_MANAGER = AudioDataManager.getInstance();

    @Override
    protected List getRootItems() {
        return Mood.getMoods();
    }

    @Override
    protected List getArtistsByTag(String tagName) {
        return AUDIO_DATA_MANAGER.getArtistsByMood(tagName);
    }

    @Override
    protected List getTracksByTag(String tagName) {
        return AUDIO_DATA_MANAGER.getSongsByMood(tagName);
    }
}
